﻿using System;

namespace Manon.Repository
{
    /// <summary>
    /// 删除实体
    /// </summary>
    public interface IDeleteEntity
    {
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DeleteTime { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get; set; }
    }

    /// <summary>
    /// 删除实体
    /// </summary>
    /// <typeparam name="TBy"></typeparam>
    public interface IDeleteEntity<TBy> : IDeleteEntity
    {
        /// <summary>
        /// 删除人
        /// </summary>
        public TBy DeleteBy { get; set; }
    }
}
